package com.hopu.student_demo.service.impl;

import com.hopu.student_demo.dao.ScoreDAO;
import com.hopu.student_demo.entity.Score;
import com.hopu.student_demo.service.ScoreService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ScoreServiceImpl implements ScoreService {

    @Autowired
    private ScoreDAO scoreDAO;

    @Override
    public List<Score> findAll() {
        return scoreDAO.selectAll();
    }
}
